package org.baicaixiaozhan.springbootwebdemo1.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * DESC: JWT 配置信息
 *
 * @author : baicaixiaozhan
 * @since : 2021-01-30
 */
@EnableConfigurationProperties(JwtConfig.class)
@ConfigurationProperties(prefix = "application.jwt")
@Component
public class JwtConfig {
    private String secureKey;
    private String tokenPrefix;

    public String getSecureKey() {
        return secureKey;
    }

    public void setSecureKey(String secureKey) {
        this.secureKey = secureKey;
    }

    public String getTokenPrefix() {
        return tokenPrefix;
    }

    public void setTokenPrefix(String tokenPrefix) {
        this.tokenPrefix = tokenPrefix;
    }

    public JwtConfig() {
    }

}
